package com.cdream.basic.spring.factorybean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author cdream
 * @date 2021/8/17
 */
// @RestController("/factoryBean")
public class FactoryBeanExampleController {
    @Autowired
    private CarFactoryBean car;
    @Autowired
    private ApplicationContext applicationContext;
    @RequestMapping("/test")
    public void testFactoryBean(){
        System.out.println(car);
    }
}
